Define form view¶
Overview¶
When you add an entity to the metamodel, the Detail view is the first view for that entity. Its [Detail] view is also a form view. In the form view definition, the following items are defined as the representation format of the model.
- Fields to edit on the form and their layout
- Field representation format (text/list/grid etc.)
Below, let's update the definition of the [Detail] view in the next step so that the details of the [Use Case Model] can be edited in the Form view.
- Add [Actor] and [Use case] which are components of [Use Case Model] to the form.
- Change the display format of [Use case] to grid
Image of the defining form view
1. Add actors and use cases to the form¶
Add field
When you view the Use Case Model Detail view, the Form view shows the title and the Description field. The model actors [Actor] and [Use case] can also be added to the form view as fields.
This section describes the procedure to add [Actor] and [Use case] to the form view in the following expression format.
Filelds | Representation (form element) |
---|---|
Actor | List |
Use case | List |
Operating procedure
- Select an existing element on the form to identify the view to which you want to add the field. This will activate the commands provided on the ribbon under Profile> Form.
- From the ribbon, click Profile> Form> Add Exist Fields to add form elements for each field from the New Control dialog.
Add lower field
The fields that [Actor] has can also be added under [Actor]. To add the Actor Description to the Form View:
Operating procedure
- Select one of the actors listed on the form. If the list is empty, add an actor and then select it.
- As before, from the ribbon click Profile> Form> Add Exist Fields to add the Description field.
2. Change the display format of use cases to grid¶
Change to grid format and add columns
The components of the model can be expressed in grid format as well as list format.
This section describes the procedure for changing the [Use case] list format to the grid format and adding the [Description] and [Precondition] fields to the columns of the grid.
Operating procedure
- Select the field on the form view whose presentation format you want to change.
- From the ribbon, click Form> Control> Kind and click Grid to switch to grid format.
- Select one of the use cases displayed in the grid. If the grid is empty, add a use case and then select it.
- From the ribbon, click Form> Grid> Add Exist Field Column and select the field in the Add New Column dialog to add it to the grid column.